package com.ruoyi.closesession.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.closesession.mapper.CloseSessionMapper;
import com.ruoyi.closesession.domain.CloseSession;
import com.ruoyi.closesession.service.ICloseSessionService;

/**
 * 会话倒计时Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
@Service
public class CloseSessionServiceImpl implements ICloseSessionService 
{
    @Autowired
    private CloseSessionMapper closeSessionMapper;

    /**
     * 查询会话倒计时
     * 
     * @param id 会话倒计时主键
     * @return 会话倒计时
     */
    @Override
    public CloseSession selectCloseSessionById(Long id)
    {
        return closeSessionMapper.selectCloseSessionById(id);
    }

    /**
     * 查询会话倒计时列表
     * 
     * @param closeSession 会话倒计时
     * @return 会话倒计时
     */
    @Override
    public List<CloseSession> selectCloseSessionList(CloseSession closeSession)
    {
        return closeSessionMapper.selectCloseSessionList(closeSession);
    }

    /**
     * 新增会话倒计时
     * 
     * @param closeSession 会话倒计时
     * @return 结果
     */
    @Override
    public int insertCloseSession(CloseSession closeSession)
    {
        return closeSessionMapper.insertCloseSession(closeSession);
    }

    /**
     * 修改会话倒计时
     * 
     * @param closeSession 会话倒计时
     * @return 结果
     */
    @Override
    public int updateCloseSession(CloseSession closeSession)
    {
        return closeSessionMapper.updateCloseSession(closeSession);
    }

    /**
     * 批量删除会话倒计时
     * 
     * @param ids 需要删除的会话倒计时主键
     * @return 结果
     */
    @Override
    public int deleteCloseSessionByIds(Long[] ids)
    {
        return closeSessionMapper.deleteCloseSessionByIds(ids);
    }

    /**
     * 删除会话倒计时信息
     * 
     * @param id 会话倒计时主键
     * @return 结果
     */
    @Override
    public int deleteCloseSessionById(Long id)
    {
        return closeSessionMapper.deleteCloseSessionById(id);
    }
}
